//
//  WSJAppearance.m
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/12/2.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJAppearance.h"

@implementation WSJAppearance


+ (instancetype)shareAppearance{
  static WSJAppearance *shareAppearance = nil;
  static dispatch_once_t oncePredicate;
  dispatch_once(&oncePredicate, ^{
      shareAppearance = [[WSJAppearance alloc] init];
      [shareAppearance setDefaults];
      
  });
    return shareAppearance;
}
- (WSJAppearance *)init {
    self = [super init];
    if (self) {
        [self setDefaults];
    }
    
    return self;
}

- (void)setDefaults {
    
  
    _mainColor = HexRGB_WSJ(9, 78, 145);
    _labelColorDisabled = [UIColor lightGrayColor];
    _labelColorEnabled = [UIColor blackColor];
    
    _actionColorDisabled = [UIColor lightGrayColor];
    _actionColorEnabled = [UIColor blackColor];
    
    _sectionTitleFont = [UIFont boldSystemFontOfSize:17];
    _sectionTitleShadowColor = [UIColor colorWithWhite:1.0 alpha:1];
    _sectionTitleColor = [UIColor colorWithRed:0.298039 green:0.337255 blue:0.423529 alpha:1.000];
    
    _sectionFooterFont = [UIFont systemFontOfSize:15];
    _sectionFooterColor = [UIColor colorWithRed:0.298039 green:0.337255 blue:0.423529 alpha:1.000];
    
    _labelFont = [UIFont boldSystemFontOfSize:15];
    _labelAlignment = NSTextAlignmentLeft;
    
    _backgroundColorDisabled = [UIColor colorWithWhite:0.9605 alpha:1.0000];
    _backgroundColorEnabled = [UIColor whiteColor];
    
    _entryTextColorDisabled = [UIColor lightGrayColor];
    _entryTextColorEnabled = [UIColor blackColor];
    _entryAlignment = NSTextAlignmentLeft;
    _entryFont = [UIFont systemFontOfSize:15];
    
    _buttonAlignment = NSTextAlignmentCenter;
    
    _valueColorEnabled = [UIColor colorWithRed:0.1653 green:0.2532 blue:0.4543 alpha:1.0000];
    _valueColorDisabled = [UIColor lightGrayColor];
    _valueFont = [UIFont systemFontOfSize:15];
    _valueAlignment = NSTextAlignmentRight;
}

@end
